<?php if(!defined('IN_PISCES')){exit('Access Denied.');}?>
<script language="javascript" src="{$this->data['baseurl']}js/jquery/jquery.js"></script>
<script language="javascript" src="{$this->data['baseurl']}js/jquery/liscroll.js"></script>
<script language="javascript">
function checkSearch()
{
	if($('#searchKey').val()=='')
	{
		alert('请输入要搜索的关键词！');
		return false;
	}
	return true;
}
</script>
<div id="left" class="col210 mt10">
<div class="indexinfo">
	{if $this->data['user']}
	<div class="userbox">
		<div class="userlogo">
		<img src="{$this->data[user]['logo']}" width="60" height="60" />
		</div>
		<div class="userinfo">
			<ul>
			<li>欢迎您，<a href="{url('User','Index')}">{$this->data['user']['username']}</a></li>
			{if $this->data['return']['rate']>0}<li>账户余额：<a href="{url('Return','Index')}">{$this->data['user']['money']}</a></li>
			<li><a href="{url('Return','Edit')}">申请提现</a> <a href="{url('Return','Index')}">我的返现</a></li>
			{else}
			<li><a href="{url('Post','Edit')}">发表帖子</a> <a href="{url('Post','Product')}">分享商品</a></li>
			{/if}
			</ul>
		</div>
	</div>
	<div class="loginbox"><button class="login_btn" onclick="document.location='{url('User','Logout')}'">退出登录</button></div>
	{else}
	<div class="loginbox"><button class="login_btn" onclick="document.location='{$this->data['loginUrl']}'">会员登录</button></div>
	{/if}
</div>
<div class="line"></div>
<div class="indexinfo find">
	<h2>找找看</h2>
	<ul>
		<form method="post" action="{url('Default','List')}">
			<input type="text" name="k" class="searchKey" id="searchKey" autocomplete="off" /><input type="submit" class="submit" value="用输入的关键词找找看" onclick="return checkSearch();"/>
		</form>
	</ul>
</div>
{HelpList(array(),'id DESC',0,10,'id,title')}
{if !empty($pvHelpList['rows'])}
<div class="line"></div>
<div class="indexinfo news">
	<h2>网站公告</h2>
	<ul>
	<!--{loop $pvHelpList['rows'] $k $item}-->
	<li><a href="{url('Help','Index',array('id'=>$item['id']))}" title="{$item['title']}">{$item['title']}</a></li>
	<!--{/loop}-->
	</ul>
</div>
{/if}

{RecentView(20,array('num_iid','title'))}
{if !empty($pvRecentViewList)}
<div class="line"></div>
<div class="indexinfo news">
	<h2>最新成交</h2>
	<div class="ranklist2">
	<ul>
	<!--{loop $pvRecentViewList $k $item}-->
	<li><a href="{url('Default','View',array('id'=>$this->data['cf']->getId($item['num_iid'])))}" title="{strip_tags($item['title'])}" target="_blank">{strip_tags($item['title'])}</a></li>
	<!--{/loop}-->
	</ul>
	</div>
</div>
{if count($pvRecentViewList)>10}
<script language="javascript">
$(".ranklist2").jCarouselLite({
	auto: 1000,
	speed: 500,
	vertical: true,
	visible: 10
});
</script>
{/if}
{/if}

{PostList(array('type'=>1,'status'=>1),'last_updated DESC',0,10,'id,title',0,'site_right')}
{if !empty($pvPostList['rows'])}
<div class="line"></div>
<div class="indexinfo news">
	<h2>购物讨论</h2>
	<ul>
	<!--{loop $pvPostList['rows'] $k $item}-->
	<li><a href="{url('Post','View',array('id'=>$item['id']))}" title="{$item['title']}" target="_blank">{$item['title']}</a></li>
	<!--{/loop}-->
	</ul>
</div>
{/if}
</div>